package com.xiaoyu.lanling.feature.checkin.log

import com.xiaoyu.lanling.util.event
import com.xiaoyu.lanling.util.logEvent
import com.xiaoyu.lanling.util.prop

object CheckInLogger {

    fun show(from: String) {
        event("check_in_dialog_show")
                .prop("from", from)
                .logEvent()
    }

    fun checkInRequestStart() {
        event("check_in_dialog_check_in_request_start")
                .logEvent()
    }

    fun checkInRequestSuccess() {
        event("check_in_dialog_check_in_request_success")
                .logEvent()
    }

    fun checkInRequestFailure(reason: String) {
        event("check_in_dialog_check_in_request_failure")
                .prop("reason", reason)
                .logEvent()
    }

    fun checkInMissionClick() {
        event("check_in_success_dialog_mission_click")
                .logEvent()
    }
}